import jwt, { JwtPayload } from 'jsonwebtoken'
export default class BaseController {
  static verifyToken(token: string) {
    const result = jwt.verify(token, '34t9sdf32199dsdf') as JwtPayload
    return result.data
  }
}

export const { verifyToken } = BaseController
